package com.jiawa.train.business.service;

import com.jiawa.train.business.domain.TrainStation;
import com.jiawa.train.business.req.TrainSaveReq;
import com.jiawa.train.business.req.TrainStationQueryReq;
import com.jiawa.train.business.resp.TrainStationQueryResp;
import com.jiawa.train.common.resp.PageResp;

import java.util.List;

/**
 * @author zzl
 * @version 1.0
 */
public interface TrainStationService {
    /**
     * 新增一条高铁经停车站信息
     * @param req
     */
    void save(TrainSaveReq req);

    /**
     * 查询高铁经停车站信息
     * @param req
     * @return
     */
    PageResp<TrainStationQueryResp> queryList(TrainStationQueryReq req);

    /**
     * 根据id删除经停车站信息
     * @param id
     */
    void delete(Long id);

    /**
     * 根据高铁车次查询经停车站信息
     * @param code
     * @return
     */
    List<TrainStation> selectByTrainCode(String code);
}
